# -*- encoding: utf-8 -*-
"""
@File    : homework.py
@Time    : 2020/11/2 21:05
@Author  : lluyao
@Email   : lluyao61@163.com
@Software: PyCharm
"""

import random
def func():
    squ = 'abcdefghigklmnopqrstuvwxyz0987654321'
    num = input('请输入您需要的激活码个数：')
    if num.isdigit():
        for i in range(int(num)):
            codes = []
            for j in range(4):
                code = ''.join(random.sample(str.upper(squ), 8))
                codes.append(code)
            print('-'.join(codes))
    else:
        print('请输入数字！')

if __name__ == '__main__':
    func()